package com.zhihao.takeaway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhihao.takeaway.common.utils.EasyUITable;
import com.zhihao.takeaway.entity.Dish;
import com.zhihao.takeaway.entity.DishFlavorVo;

import java.util.List;
import java.util.Map;

public interface DishService extends IService<Dish> {

    Boolean updateDish(Dish dish);

    Boolean deleteDish(Dish dish);

    Boolean sailDish(Dish dish);

    Boolean stopDish(Dish dish);

    Boolean addDish(Dish dish);

    List<Dish> getMenuData(String search);
// 用户  方法
    List<Dish> selectList(String input);

    Dish selectById(String id);


    Boolean parseContent() throws Exception;
    List<Map<String,Object>> searchPage(String keyword, int pageNo, int pageSize) throws Exception;

    EasyUITable getDishListByMarketerId(String marketerId);

    List<Dish> selectByIds(String dishId);

    List<DishFlavorVo> getDishFlavorData(String MarketerId);

}
